package job;

public class Teacher {
    private String name;
    private long num;

    public Teacher() {
    }

    public Teacher(String name, long num) {
        this.name = name;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public long getNum(){
        return num;
    }
    public void setNum(long num){
        this.num = num;
    }
    public void teach(){
        System.out.println("工号为"+num+"的"+name+"老师正在讲课");
    }
}
